package com.tct.worktimeboard.mapper;

import com.tct.worktimeboard.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liyongkui
 * @since 2021-02-25
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    List<LinkedHashMap<String,Object>> getHaveWorkTimePower();

    List<String> getInitPowerUserList(@Param("userId") Long userId);

    UserInfo getUserInfo(@Param("userId")Long userId);

    void deleteDept();

    int insertDept(@Param("list") List<String> list);

    int addPowerByUserList(@Param("powerId")Long powerId, @Param("list") List<Long> list);

    Long getUserIdByAccount(@Param("account") String account);
}
